package ingsw2.functionality;

public class Person implements IOrganizationalUnit {

	private String firstName;
	private String lastName;
	private String role;
	
	/**
	 * @param firstName
	 * @param lastName
	 * @param role
	 */
	public Person(String nome, String cognome, String ruolo) {
		this.firstName = nome;
		this.lastName = cognome;
		this.role = ruolo;
	}

	/**
	 * @return the firstName
	 */
	public String getFirstName() {
		return firstName;
	}

	/**
	 * @return the lastName
	 */
	public String getLastName() {
		return lastName;
	}

	/**
	 * @return the role
	 */
	public String getRole() {
		return role;
	}

	@Override
	public void accept(IElementVisitor visitor) {
		visitor.visitPerson(this);
	}

}
